package test;
import java.io.IOException;
import java.util.ArrayList;
import com.graph.*;
import com.path.algorithms.*;
public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	
	public static void main(String[] args){
		ArrayList<Integer> path = new BasicGraph("matrix.txt").findPath(0, 3);
		System.out.println(path);
	}
	public static void main_old_2(String[] args){
		BasicGraph g = new BasicGraph();
		g.createMatrixFromFile();
		ArrayList<Integer> path = g.findPath(0, 3);
		System.out.println(path);
		
		ArrayList<Integer> improvedPath = g.improvePath(path);
		System.out.println(improvedPath);
		
	}
	
	
	public static void main_Old_1(String[] args) throws IOException {
		AdjacencyMatrix am = new AdjacencyMatrix();
		//am.createMatrixFromFile();
		am.printMatrix();
		FindPath fp = new FindPath();
		int start = 0;
		int end = 3;
		fp.find(am, start, end);
		fp.printPath(fp.getPath());
		ArrayList<Integer> l = fp.improvePath();
		fp.printPath(l);
	}

}
